<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>

<s:url var="action_url" value="/meteorological_reports/save_taf_group"/>


<sf:form method="POST" class="form-horizontal" role="form" modelAttribute="tafGroupDataFormBean" action="${action_url}">
    <div class="form-group">
        <sf:label cssClass="col-sm-3 control-label no-padding-right"  path="aerodromoId">Localidade</sf:label>

            <div class="col-sm-3">
            <sf:select path="aerodromoId" cssClass="chosen-select" data-placeholder="Selecione uma localidade...">
                <optgroup label="CINDACTA 1">
                    <sf:option value="0">SBTM</sf:option>
                    </optgroup>
                    <optgroup label="CINDACTA 2">
                    <sf:option value="0">SBRJ</sf:option>
                    </optgroup>
                    <optgroup label="CINDACTA 3">
                    <sf:option value="0">SBRF</sf:option>
                    <sf:option value="0">SBMN</sf:option>
                    <sf:option value="0">SBBR</sf:option>
                    </optgroup>
            </sf:select>
            <div class="space-2"></div>

            <div class="help-block" id="input-size-slider"></div>
        </div>
    </div>
    <div class="form-group">
        <sf:label cssClass="col-sm-3 control-label no-padding-right"  path="mes">Mês</sf:label>

            <div class="col-sm-3">
                <div class="input-group">
                <sf:input path="mes" class="form-control date-picker" id="id-date-picker-1" type="text" />
                <span class="input-group-addon">
                    <i class="fa fa-calendar bigger-110"></i>
                </span>
            </div>


            <div class="space-2"></div>

            <div class="help-block" id="input-size-slider"></div>
        </div>
    </div>

    <div class="form-group">
        <sf:label cssClass="col-sm-3 control-label no-padding-right"  path="totalPrevisto">Total Previsto</sf:label>

            <div class="col-sm-9">


            <sf:input path="totalPrevisto" type="text" cssClass="input-mini" />
            <div class="space-2"></div>

            <div class="help-block" id="input-size-slider"></div>
        </div>
    </div>
    <div class="form-group">
        <sf:label cssClass="col-sm-3 control-label no-padding-right"  path="totalEmendas">Total Emendas</sf:label>

            <div class="col-sm-9">
            <sf:input path="totalEmendas" type="text" cssClass="input-mini" />
            <div class="space-2"></div>

            <div class="help-block" id="input-size-slider"></div>
        </div>
    </div>   
    <div class="form-group">
        <sf:label cssClass="col-sm-3 control-label no-padding-right"  path="totalAtrasados">Total Atrasados</sf:label>

            <div class="col-sm-9">
            <sf:input path="totalAtrasados" type="text" cssClass="input-mini" />
            <div class="space-2"></div>

            <div class="help-block" id="input-size-slider"></div>
        </div>
    </div>    <div class="form-group">
        <sf:label cssClass="col-sm-3 control-label no-padding-right"  path="totalAusentes">Total Ausentes</sf:label>

            <div class="col-sm-9">
            <sf:input path="totalAusentes" type="text" cssClass="input-mini" />
            <div class="space-2"></div>

            <div class="help-block" id="input-size-slider"></div>
        </div>
    </div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <button class="btn btn-info" type="submit">
                <i class="ace-icon fa fa-check bigger-110"></i>
                Gravar
            </button>

            &nbsp; &nbsp; &nbsp;
            <button class="btn" type="reset">
                <i class="ace-icon fa fa-undo bigger-110"></i>
                Limpar
            </button>
        </div>
    </div>
</sf:form>
